//引入发送请求的函数
import request from '@/utils/request'
import type {sqtableData} from '../model/trademark'
// 获取品牌数据列表请求

export const reqbaseTrademarkData = (page:number,limit:number) => {
  return request.get<any,sqtableData>(`/admin/product/baseTrademark/${page}/${limit}`)
}

//删除品牌列请求

export const reqbaseTrademarkdl = (id:number) => {
  return request.delete<any,null>(`/admin/product/baseTrademark/remove/${id}`)
}

//添加品牌请求

export const reqbaseTrademark = (tmName:string,logoUrl:string) => {
  return request.post<any,null>(`/admin/product/baseTrademark/save`, {
    tmName,
    logoUrl
  })
}

//修改品牌请求
export const reqbaseTrademarkAmend = (trademark:any) => {
  return request.put<any,null>(`/admin/product/baseTrademark/update`, 
    trademark
  )
}


